export interface RouterType {//路由类型
    path?: string,
    element?: JSX.Element,
    children?: RouterType[],
    from?: string,
    to?: string,
    title?: string,
    icon?: JSX.Element,
    auth?: string
}


// 注册类型
export interface signType {
    username: string,
    password: string,
    okPassword: string,
    // email: string
}

// 输入框中的类型
export interface searchOptionType {
    label: string,
    type: string,
    name: string,
    option?: {
        label: string,
        value: number | string
    }[]
}

// 搜索组件的类型
export interface searchType {
    option: searchOptionType[],
    onSearch: any,
    onReset: any
}